package com.headfirst.dp.chapter1.realworld;

public class MiniSimulator {

	public static void main(String[] args) {
		SecurityService service = new SecurityService();
		
		SecurityModule module = new NPKISecurityModule();
		
		service.setSecurityModule(module);
		service.performSignAndEncrypt();
	
		module = new GPKISecurityModule();
		service.setSecurityModule(module);
		service.performSignAndEncrypt();
		
		module = new NoWaySecurityModule();
		service.setSecurityModule(module);
		service.performSignAndEncrypt();
	}
}
